<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后街、后街交友、同城交友、交友-SInfo信息找不到</title>
<script src="${pageContext.request.contextPath}/js/jquery-1.7.2.js"></script>
<%-- <script	src="${pageContext.request.contextPath}/js_customer/sinfo/notlogin.js"></script> --%>
<link rel="stylesheet" type="text/css"	href="${pageContext.request.contextPath}/css/customer/ucenter.css">
<meta name="keywords" content="后街、后街交友、同城交友、交友、交友平台">
<meta name="description"
	content="寻找志同道合的朋友；交友、聊天、游戏、泡吧，让您在忙碌的工作之余,找到志同道合的朋友,享受快乐人生.">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<script type="text/javascript">
	function reloadValidateCodeNotlogin(){
		$("#validationAreaNotlogin").html("");
		$("#validationAreaNotlogin").html('<img alt="验证码" src="'+ROOTPATH+'/validateCode.aspx?a='+UUID.prototype.createUUID()+'" style="width: 60px;height: 20px; vertical-align:middle;">');
	}
	$(document).ready(function () {  
		reloadValidateCodeNotlogin();
	});
	function showLink() {
		$(this).find('.ucenter-pic a').css('display', 'block');
	}
	function changePasswordSubmit(){
		var uuid = $("#uuid").val();
		var password = $("#passwordLook1").val();
		var password2 = $("#passwordLook2").val();
		var validationCode = $("#validationCodeLookpass").val();
		alert(uuid);
		if (password == "") {
			alert("新密码不能为空！");
			return;
		}
		if (password2 == "") {
			alert("新密码需要输入两次！");
			return;
		}
		//alert(password + "=" + password2);
		if (password != password2) {
			alert("两次输入的密码不一样，请重新输入");
			return;
		}
		if(validationCode== ""){
			alert("验证码不能为空，请输入验证码");
			return;
		}
		$.post(ROOTPATH + "/customer/generateNewPassword.aspx", {
			uuid:uuid,
			passWord : password,
			passWord2:password2,
			validationCode:validationCode
		}, function(data) {
			if (data == "" || data == 0) {
				alert("<span color='red'>修改密码失败</span>");
			} else {
				if (data.resultCode != "1") {
					alert(data.resultStr);
				} else {
					alert(data.resultStr);
					//window.location.reload(true);
					window.location.href=ROOTPATH+"/login.aspx"; 
				}
			}
		});
	}
</script>
<style type="text/css">
	table.userlongin tr td.hasborder{
		border-top: 1px dotted #F8BFB3;
	}
	table.userlongin tr td.hasborder a{
		font-weight: 700;
	}
	table.userlongin tr td.fontred{
		color: #DC442F;
	}
	/* table.userlongin tr td.fontred a{
		color: #DC442F;
		text-decoration: underline;
		font-weight: 400;
	} */
	
</style>
</head>
<body>
	<!--头部 s-->
	<c:import url="../common/newHeader.jsp"></c:import>
	<script type="text/javascript" charset="utf-8">
        window.UEDITOR_HOME_URL = ROOTPATH+"/js_ueditor/";
	</script>
	<!--头部 e-->
	<div class="w980 sinfo_test_center" style="height: 20px;">
		<a href="${pageContext.request.contextPath}" class="sinfo_homepage" title="首页"></a>
		<em>&nbsp;&nbsp;&gt;&nbsp;&nbsp;</em>
		<a href="${pageContext.request.contextPath}/" title="上海"><b>后街网首页</b></a>
		<em>&nbsp;&nbsp;&gt;&nbsp;&nbsp;</em>
		<a href="#" title="上海"><b>上海</b></a>
		<em>&nbsp;&nbsp;&gt;&nbsp;&nbsp;</em>
		【用户登录】
	</div>
	<div class="w980 sinfo_test_center" style="margin-top: 10px;border-top: 2px solid #E0E0E0;">
		<!-- 用户登录 -->
		<div id="notfoundLogin" style="padding:20px; border: 3px solid #FFEDE3;width: 500px;margin: 160px auto;display: inherit;">
			<input type="hidden" id="uuid" name="uuid" value="${uuid}">
			<table class="userlongin">
				<thead>
					<tr>
						<td colspan="3" style="text-align: center;color: #DC442F;">
							<span style="font-weight: 700;font-size: 20px;">
								找回密码(${customer.userName})
							</span>
						</td>
					</tr>
				</thead>
				<tr>
					<td class="hasborder fontred" style="text-align: right;padding-right: 5px;width: 180px;">请输入新密码:</td>
					<td class="hasborder" style="width: 270px;">
						<input type="password" name="passwordLook1" id="passwordLook1" class="text ui-widget-content ui-corner-all" />
					</td>
				</tr>
				<tr>
					<td class="hasborder fontred" style="text-align: right;padding-right: 5px;">再次输入新密码:</td>
					<td class="hasborder">
						<input type="password" name="passwordLook2" id="passwordLook2" class="text ui-widget-content ui-corner-all" />
					</td>
				</tr>
				<tr>
					<td class="hasborder" style="text-align: right;padding-right: 5px;">验证码:</td>
					<td class="hasborder">
						<span id="validationAreaNotlogin">
							
						</span>
						看不清,
						<a href="javascript:void(0)" onclick="reloadValidateCodeNotlogin();"><b>换一张</b>
						</a>
					</td>
				</tr>
				<tr>
					<td class="hasborder" style="text-align: right;padding-right: 5px;">验证码输入:</td>
					<td class="hasborder">
						<input type="text" size="10" id="validationCodeLookpass"  name="validationCodeNotLogin" class="text ui-widget-content ui-corner-all">
					</td>
				</tr>
				<tr>
						<td class="hasborder" colspan="2" style="padding-left: 185px;">
							<button onclick="changePasswordSubmit();" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" 
								type="button" 
								role="button" 
								aria-disabled="false" style="margin: 5px 0;width: 60px;vertical-align: middle;">
								<span class="ui-button-text">提交</span>
							</button>
						</td>
				</tr>
			</table>
		</div>
	</div>
	<!--footer s-->
	<c:import url="../common/newFooter.jsp"></c:import>
	<!--footer e-->

</body>
</html>